package org.example.utils;

import java.util.Arrays;
import java.util.List;

public class JWTUtilsTest {
    public static void main(String[] args) {
        JWTUtils jwtUtils = new JWTUtils();
        List<String> authList = Arrays.asList("student:query,student:add");
        String jwtUtilsToken = jwtUtils.createToken(1, "dewihsyi", authList);
        System.out.println(jwtUtilsToken);
        System.out.println(jwtUtils.verifyToken(jwtUtilsToken));
        System.out.println(jwtUtils.getUserId(jwtUtilsToken));


    }
}
